package cn.lingyangwl.agile.infra.module.group.model.rqrs;

import cn.lingyangwl.agile.model.enums.DataGroupBizTypeEnum;
import cn.lingyangwl.agile.model.constants.ValidationCons;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 通用数据组
 *
 * @author shenguangyang
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "删除通用数据组")
public class DataGroupDeleteReq {
    @ApiModelProperty(value = "业务主键")
    @NotNull(message = ValidationCons.NOT_EMPTY)
    @Length(min = 1, message = ValidationCons.NOT_EMPTY)
    private List<Long> ids;

    /**
     * @see DataGroupBizTypeEnum
     */
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private Integer bizType;
}
